// 系统管理模块入口文件
import '@/assets/styles/views/common.scss'

// 从子模块导入组件
import User from './user/index.vue'
import Role from './role/index.vue'
import Menu from './menu/index.vue'
import Dept from './dept/index.vue'

// 导出组件
export { User, Role, Menu, Dept }

// 路由配置
export default {
  path: '/system',
  name: 'System',
  meta: {
    title: '系统管理',
    icon: 'SettingOutlined'
  },
  children: [
    {
      path: 'user',
      name: 'SystemUser',
      component: () => import('./user/index.vue'),
      meta: {
        title: '用户管理',
        permission: ['system:user:list']
      }
    },
    {
      path: 'role',
      name: 'SystemRole',
      component: () => import('./role/index.vue'),
      meta: {
        title: '角色管理',
        permission: ['system:role:list']
      }
    },
    {
      path: 'menu',
      name: 'SystemMenu',
      component: () => import('./menu/index.vue'),
      meta: {
        title: '菜单管理',
        permission: ['system:menu:list']
      }
    },
    {
      path: 'dept',
      name: 'SystemDept',
      component: () => import('./dept/index.vue'),
      meta: {
        title: '部门管理',
        permission: ['system:dept:list']
      }
    }
  ]
} 